Cognizant Interview Question

Factorial and string search in a character array programs.