Find a Value of a Mysterious Function Closest to Target

Find a Value of a Mysterious Function Closest to Target - Coding Problem | K5kC