Commvault interview question

implement heap