Binance interview question

heap vs stack in js