FIS Interview Question

Write a Groovy script for the scenario exactly and automation questions