Mike and congruence relation

Problem Name:
Mike and congruence relation
Site:HackerEarth
Links:
Tags:
Problem setters: