Cognizant Interview Question

They asked basic programming questions like what’s an array or how do you reverse a string and wanted me to explain my code.