Prime Ministers number

Problem Name:
Prime Ministers number
Site:HackerEarth
Links:
Tags:
Problem setters: