Pregunta de entrevista de YASH Technologies

Tree and Array based DSA question