BiTaksi Interview Question

Stack vs Heap Hash complexity and Hash logic