Domanda di colloquio di Infosys

Leetcode DSA question as it is