Unity interview question

A leet code easy type take home coding problem