Plusgrade interview question

I had to do a code review