Rakuten Interview Question

Coding questions on heaps, arrays, sorting