AT&T interview question

Motivation