Monk and circular distance

Problem Name:
Monk and circular distance
Site:HackerEarth
Links:
Tags:
Problem setters: