AT&T interview question

About my project, 2 coding problems