Rubrik Interview Question

binary seqrch based and sliding window based