Given two sorted integer arrays A and B, merge B into A as one sorted array.