A favorite function

Problem Name:
A favorite function
Site:HackerEarth
Links:
Tags:
Problem setters: