Kensho Technologies Interview Question

Make a smoothing function