Count special subsets

Problem Name:
Count special subsets
Site:HackerEarth
Links:
Tags:
Problem setters: