Pergunta de entrevista da empresa Themexpert

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