Pergunta de entrevista da empresa Indeed

Data structure to get median efficiently