Qualcomm interview question

Binary search, To detect loop in a LL, to implement a queue with two stacks