Litmus World interview question

Write bubble and merge sort