Sutherland Interview Question

Not that much difficult