Maths Labyrinth: The Tournament Answer

string