Vichitr's submission of Problem 7 | CodeChef