Pregunta de entrevista de Infosys

Pattern based coding question is asked.