Pregunta de entrevista de Indeed

Data structure to get median efficiently