ByteDance Interview Question

Implementing a binary heap from scratch