Infosys interview question

Dsa question (Leetcode hard) and technical questions