Pregunta de entrevista de Two Sigma

array sorting and recursion type question