He had prepared for almost a year. Done hundreds of practice tests. And won two bronze medals in his past two International Mathematics Olympiads.