Pergunta de entrevista da empresa LinkedIn

Complexity of insertion in priority queue