Pregunta de entrevista de MathWorks

Discuss how to implement diff algorithm.