Amdocs Interview Question

3 easy algorithm problems