Texas Instruments Interview Question

2. Write a function in C and then convert it into assembly