Compute top three scores per student | Apple Interview Question