Flipkart interview question

Burning Tree problem was asked with its variations.