Unity Interview Question

A leet code easy type take home coding problem