You are given orders, a list of dictionaries. Each dictionary has the keys 'order_id' (int), 'customer_id' (int) and 'amount' (int). You are also given threshold (int).
For each customer, add up the amount of all their orders. Return a set of the customer_id values whose total amount is strictly greater than threshold.
If no customer qualifies, return an empty set.
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
[{'order_id': 1, 'customer_id': 100, 'amount': 50}, {'order_id': 2, 'customer_id': 100, 'amount': 80}, {'order_id': 3, 'customer_id': 200, 'amount': 40}]
100
Returns
{100}