First and only commit. I assumed that students side by side should have the same number of candies to also reduce jealousy, thats why my solution gives 5 for the example rating array