Jigya's submission of MUSICAL PROBLEM | CodeChef