Pergunta de entrevista da empresa Infosys

they gave me dsa question straight forward