Apple Interview Question

Make an interpolation function