Genx interview question

Program of linear search and binary search