Solution

ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2021/digital-systems-linear-algebra-introduction-to-formal-proof/3/a/solution

Compute the two complements with the two NOT gates, then form and with the two AND gates. Feed those outputs to the OR gate:
Exactly one product is one when the inputs differ; both products are zero when the inputs agree. This uses precisely the allowed two inverters, two two-input AND gates and one two-input OR gate.

New to topics? Read the docs here!