Genesys interview question

logical programs , sorting, searching