Pregunta de entrevista de Cognizant

2. Coding questions (prime no, maximum no in array, 2nd max in array, reverse the string