Cognizant interview question

write the program about linear and binary search in C.