karn's submission of Wormholes | CodeChef