Design a XOR gate using the following custom gates
This particular one was given in an interview at IBM over 10 years ago.
Due to the war in the land of Logicia there is a shortage of XOR gates. Unfortunately, the only logic gates available are two weird components called “X” and “Y”. The truth table of both components is presented below - Z represents a High-Z value on the output. Could you help the poor engineers of Logicia to build an XOR gate?