Binance Interview Question

heap vs stack in js