Texas Instruments Interview Question

questions from paper