Themexpert interview question

Basic Leetcode is an easy problem, but it is a simple DSA question.