Amdocs interview question

Solve a programming problem using your favorite programming language.