[LC] Add solution to rotate image.