You are given two sorted integer arrays a and b.
Merge them into a single array sorted in non-decreasing order and return it.
(Modelled with arrays rather than linked-list pointers so the harness can pass inputs directly.)
Input
a = [1,2,4], b = [1,3,4]
Expected
[1,1,2,3,4,4]