Amdocs Interview Question

Pattern matching questions.