Texas Instruments Interview Question

Design a calculator using gates.