Flipkart interview question

it was graph and binary related