HackerRank solutions to games.