Counting ones

Problem Name:
Counting ones
Site:HackerEarth
Links:
Tags: