Discover the Monk

Problem Name:
Discover the Monk
Site:HackerEarth
Links:
Tags:
Problem setters: