Pregunta de entrevista de Google

Asked about a signal processing problem, array manipulation