Ankan's submission of THE GOLDEN PROBLEM | CodeChef