Cisco Interview Question

Sort with unsorted Array A and B