Amdocs Interview Question

String manipulations.