AT&T Interview Question

Most of the questions were in JavaScript.