Nitesh Pathak's submission of MUSICAL PROBLEM | CodeChef