Vichitr's submission of Problem 24 | CodeChef