Pregunta de entrevista de Flipkart

Burning Tree problem was asked with its variations.