Monk and Divisor Conundrum

Problem Name:
Monk and Divisor Conundrum
Site:HackerEarth
Links:
Tags:
Problem setters: