AT&T Interview Question

Nothing to difficult