Vichitr's submission of Problem 22 | CodeChef