Vichitr's submission of Problem 6 | CodeChef