Sudhir Pratap Singh's submission of One Dimensional Kingdoms | CodeChef