Avoiding traps

Problem Name:
Avoiding traps
Site:HackerEarth
Links:
Tags:
Problem setters: