Does it divide?

Problem Name:
Does it divide?
Site:HackerEarth
Links:
Tags:
Problem setters: