Here are some methods. these methods are listed in an article in different ways like how to rotate t…