Pergunta de entrevista da empresa Bloomberg

Implement a heap with functionality to efficiently modify/move elements.