Awardco interview question

A basic Leet code question