MiQ interview question

1 merge sort code 2 Binary search 3 sql query