Add solution for #10368 Euclid's Game