Write discounted(prices) returning prices above 500 with a 10% discount applied (rounded to 2), in order.
discounted([100, 600, 1000]) → [540, 900]
discounted([]) → []
Submit runs 4 tests, including hidden edge cases.
Run your code to see the output here.