part d
created a function for the user to sort the students using a structure and added a sample of students to check the working of the code
created a function for the user to sort the students using a structure and added a sample of students to check the working of the code