DRW interview question

Easy-Medium Leetcode