TaskUs interview question

Did not get this far!