The counting problem

Problem Name:
The counting problem
Site:HackerEarth
Links:
Tags: