AP or Not

Problem Name:
AP or Not
Site:HackerEarth
Links:
Tags:
Problem setters: