61. Nearest Value

Medium

Find and return the value in array Z nearest to the scalar z.

Implement solve(...)