Solved theleadgame in C, Python and Java