Pregunta de entrevista de Cognizant

What is an array? What are time and space complexity? How to reverse the string?