Texas Instruments interview question

Design a calculator using gates.