Six Flags Interview Question

Are you able to do till?