Zentree Labs Interview Question

A Two pointer (binary search) based DSA question and time complexity.