Problem Description
You are given a 2D string array A of dimensions N x 2,
where each row consists of two strings: first is the name of the student, second is their marks.
You have to find the maximum average mark. If it is a floating point, round it down to the nearest integer less than or equal to the number.
A = [["Bob", "80"], ["Bob", "90"], ["Alice", "90"]]
Input 2:
A = [["Bob", "80"], ["Bob", "90"], ["Alice", "90"], ["Alice", "10"]]
90
Output 2:
85
Alice has the highest average with 90 marks.
Explanation 2:
Bob has the highest average with 85 marks.
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a question? Checkout Sample Codes for more details.