You are given a non-empty dictionary students keyed by student id (string). Each value is a record {'name': str, 'scores': list[int]} where scores is a non-empty list of integers.
Return the name of the student whose average score (sum(scores) / len(scores)) is the highest. If two or more students tie on average, choose the one whose student id is smallest in ascending (lexicographic) order.
NOTE: This is a function-type question — you only write the function. Do not read input or print anything; a hidden checker calls your function and checks its return value.
Arguments
{'s1': {'name': 'Ann', 'scores': [80, 90]}, 's2': {'name': 'Bo', 'scores': [70, 60]}}
Returns
'Ann'