AT&T Interview Question

About my project, 2 coding problems