Pregunta de entrevista de IONOS

Given two array and order time according to array's elements