Pergunta de entrevista da empresa SpaceX

Codility interview question - can't disclose.