Amazon Interview Question

Phone call question was sort a shorter array based on the ordering in a longer one