Count the subset

Problem Name:
Count the subset
Site:HackerEarth
Links:
Tags: