50. Closest Value to a Scalar

Medium

Return the element of array Z closest to the scalar v.

Implement solve(...)