Pregunta de entrevista de Infosys

Write any code with Groovy scripting.