Robert Bosch interview question

Write an algorithm to clean up noisy signal data.