Pergunta de entrevista da empresa YASH Technologies

Tree and Array based DSA question