Pergunta de entrevista da empresa Programming.com

Python Coding Hard Difficulty. Index count, etc.