HackerLand University has the following grading policy:
Sam is a professor at the university and likes to round each student’s $grade$ according to these rules:
Examples
Given the initial value of $grade$ for each of Sam’s $n$ students, write code to automate the rounding process.
Function Description
Complete the function gradingStudents in the editor below.
gradingStudents has the following parameter(s):
Returns
Input Format
The first line contains a single integer, $n$ , the number of students.
Each line $i$ of the $n$ subsequent lines contains a single integer, $grades[i]$.
Constraints
hackerrank.com/challenges/three-month-preparation-kit-grading/