Pergunta de entrevista da empresa SeatGeek

to solve question with "goto" method