Domanda di colloquio di AT&T

Discussed the code you wrote for the longer coding problem. How your code can be improved.