Six Flags interview question

Nothing difficult