Cognizant interview question

how to take char input and then the array regarding it, strings, array, location