Qualcomm Interview Question

write a C program for fibonacci series, some questions on FSM