You are given a dictionary accounts keyed by account id (string). Each value is a record containing at least the key 'balance' (an int or float), possibly alongside other fields. You are also given a threshold number.
Return a list of the account ids whose 'balance' is strictly greater than threshold. The list must be sorted in ascending order of account id. If no account qualifies, return an empty list.
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
{'u1': {'balance': 100}, 'u2': {'balance': 50}, 'u3': {'balance': 200}}
80
Returns
['u1', 'u3']