Added solution for Rotate