Sponsored
Use these hints if you're stuck. Try solving on your own first.
Calculate the compatibility score for each student-mentor pair.
Try every permutation of students with the original mentors array.
Solve with full IDE support and test cases