IBM interview question

There were 2 easy leetcode questions.