Merge into the back of a buffer
a is a list whose first m items are sorted and whose remaining len(b) slots are
zeros, used as spare room. b is a sorted list. Write merge_into(a, m, b) that merges
b into a in place so that all of a is sorted, and returns a.
merge_into([1, 2, 3, 0, 0, 0], 3, [2, 5, 6]) -> [1, 2, 2, 3, 5, 6]
merge_into([0], 0, [1]) -> [1]
merge_into([2, 0], 1, [1]) -> [1, 2]
The point is to practise filling from the back so that nothing is overwritten before it is used.
def merge_into(a, m, b):
...