Count kings

Problem Name:
Count kings
Site:HackerEarth
Links:
Tags: