Suade Labs interview question

easy leetcode question in OA