Company: Cisco_25feb
Difficulty: medium
C: Student Grades Implement functions for the given Classroom struct, which contains the number of students ( n ) and an array of student grades ( grades ). Your task is to implement functions that calculate: The maximum grade The second maximum grade The XOR of all grades Example A classroom with 3 students having grades 2, 3, and 4: Maximum: 4 Second maximum: 3 XOR: 2⊕3⊕4=5 Function Description Implement maximum() , second_maximum() , and Find_Xor() in the editor below. maximum : returns int , the highest grade second_maximum : returns int , second second-highest grades Find_Xor : returns int , XOR of all the grades; threading allowed Constraints 2 ≤ obj.n ≤ 10 3 1 ≤ obj.grades[i] ≤ 10 3 Input Format For Custom Testing The first line contains a single integer n . The second line contains n space-separated integers. Sample Case 0 Sample Input For Custom Testing 3 1 2 3 Sample Output 3 2 0 Explanation The highest grade is 3. The second-highest grade is 2. The XOR is 0. Sample Case 1 Sa