Meta Interview Question

Merge 2 arrays using intervals