Binance interview question

staircase problem and debounce function