Pergunta de entrevista da empresa IBM

Counting Tickets questions from hackerrank.