Mettu Shiva Reddy's submission of One Dimensional Kingdoms | CodeChef