Task 1: Create an algorithm for distributing students in time slots