WellDev Interview Question

They asked a leetcode problem.