Texas Instruments Interview Question

Programming questions c and Java