Pergunta de entrevista da empresa Cyware

DSA based question of Running Median.