AT&T interview question

Basic stuff, nothing to hard