Update RotateImage.java

Submission Result: Runtime Error

Last executed input:	[[1,2],[3,4]]

Submission Result: Wrong Answer

Input:	[[1,2,3],[4,5,6],[7,8,9]]
Output:	[[7,2,1],[4,5,6],[9,8,3]]
Expected:	[[7,4,1],[8,5,2],[9,6,3]]