transpose and rotate solved