Pregunta de entrevista de IBM

Counting Tickets questions from hackerrank.