Siemens interview question

Draw all logic gates