A counting problem

Problem Name:
A counting problem
Site:HackerEarth
Links:
Tags:
Problem setters: