Pergunta de entrevista da empresa Drivetrain

Was asked a variation of Asteroid Collision (stack).