Cognizant interview question

basic oops concepts strings arrays sql