Darwinbox Interview Question

How could have angular implemented 2 way binding ?