Binance Interview Question

staircase problem and debounce function