Texas Instruments interview question

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