Dexter plays with GP

Problem Name:
Dexter plays with GP
Site:HackerEarth
Links:
Tags:
Problem setters: