Sky interview question

Problem solving questions around rearranging strings and arrays