Google Code Jame practice