Alipay interview question

Implement binary search, DFS, BFS