Amdocs Interview Question

They asked me to write a script