Pregunta de entrevista de Programming.com

Python Coding Hard Difficulty. Index count, etc.