Solve Two Sorted-Array Tasks | Instacart Interview Question