AT&T interview question

LeetCode easy and a debugging for the technical be prepared.