Pergunta de entrevista da empresa Pactera

1. first one was Tropological sorting related question