code kata about rotate an array