You are given items, a list of dictionaries. Each dictionary has the keys 'sku' (str), 'stock' (int) and 'daily_sales' (int). You are also given days (int).
An item will run out within the horizon when its current stock is strictly less than the expected demand over the period, which is daily_sales * days.
Return a set of the sku values for every item that will run out within days days.
If no item 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
[{'sku': 'A1', 'stock': 10, 'daily_sales': 3}, {'sku': 'B2', 'stock': 100, 'daily_sales': 2}]
5
Returns
{'A1'}