Distinct solutions

Problem Name:
Distinct solutions
Site:HackerEarth
Links:
Tags:
Problem setters: