OLX (India) interview question

questions based on trees and graph