arrays intermediate 1: rotate array