Infosys Interview Question

Write any code with Groovy scripting.