Rosetta Problems

Find a Value of a Mysterious Function Closest to Target

https://leetcode.com/problems/find-a-value-of-a-mysterious-function-closest-to-target