RentMyStay interview question

Arrays , strings , sorting, reverse array