Solve the Function

Problem Name:
Solve the Function
Site:HackerEarth
Links:
Tags: