Unacademy Interview Question

How diffing algorithm works in react?