An X-OR gate has following truth table.

A

B

Y

0

0

0

0

1

1

1

0

1

1

1

0

It is represented by following logic relation Y=A¯.B+A.B¯

Build this gate using AND, OR and NOT gates.