Pergunta de entrevista da empresa Google

Lists, multiple while loops, sequence and counts