PharmEasy interview question

Binary search algorithm, bfs and dfs