Vichitr's submission of Problem 29 | CodeChef