Own Company Interview Question

sorting, searching and logic puzzle