Write a Debounce Function
Problem overview from a real Apple interview:
Delay fn execution until wait ms elapse after the last call. Handles timer closures, context binding via apply, cancel methods, and Apple edge cases.
Check more interview questions and experiences about Apple
