Monk and the Islands

Problem Name:
Monk and the Islands
Site:HackerEarth
Links:
Tags:
Problem setters: