Vichitr's submission of Problem 30 | CodeChef