AT&T interview question

Leetcode Easy Java questions(i.e. square numbers)