Beetroot interview question

how to implement a search process