Six Flags Interview Question

Nothing difficult.