AT&T Interview Question

Basic stuff, nothing to hard