Programming.com interview question

Python Coding Hard Difficulty. Index count, etc.