Pregunta de entrevista de Shell

Basic Algorithm stuff (sorting complexity) and some C++. Second round got harder but still did well.