solve array rotate