Genospace interview question

implement a search mechanism