Amdocs Interview Question

There were a few puzzles