Tesla Interview Question

5. Interpolation function in C