Linh Nguyen's submission of Problem 6 | CodeChef