SeatGeek interview question

to solve question with "goto" method