Ineffective guards

Problem Name:
Ineffective guards
Site:HackerEarth
Links:
Tags:
Problem setters: