Find the value

Problem Name:
Find the value
Site:HackerEarth
Links:
Tags: