Merge two sorted arrays in-place | Amazon Interview Question