Pergunta de entrevista da empresa Six Flags

Solve the puzzle without doing certain things.