The Unlucky 13

Problem Name:
The Unlucky 13
Site:HackerEarth
Links:
Tags:
Problem setters: