Linh Nguyen's submission of Problem 12 | CodeChef