Vichitr's submission of Problem 17 | CodeChef