Pergunta de entrevista da empresa Sky

Problem solving questions around rearranging strings and arrays