Texas Instruments Interview Question

see above, nothing too difficult