Max Hung Nguyen was 17 when he began looking at a problem that astronomers have been studying for decades: whether the chemical make-up of a star can offer clues about the planets that form around it.