Pregunta de entrevista de Infosys

Dsa question (Leetcode hard) and technical questions