Sir i understood till the binary search approach i didn’t understand how we can solve it in o(n) plz help.