Rotate solutions

Rotate was solved using JavaScript by 2 contestants.