Pregunta de entrevista de Citadel

LC merge sort question. Not too difficult