Siemens Interview Question

Draw all logic gates