Count The Indexes 2

Problem Name:
Count The Indexes 2
Site:Spoj
Links:
Tags:
Problem setters: