Pergunta de entrevista da empresa Amazon

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