Duolingo Interview Question

2 leetcode easy, 1 medium, 1 hard on codesignal