Informatica interview question

mergesort code? bubble sort code,time complexity