Amazon Interview questions in C