The high school student from Szczecin finished fifth in a contest that drew participants from around 40 countries.