WellDev interview question

They asked a leetcode problem.