Create a function to rotate a two-dimensional matrix of N * N integer elements num times, where if num is positive, the rotation is clockwise, and if not, counterclockwise.
RotateTransform({
{2, 4},
{0, 0}
}, 1) ➞ {
{0, 2},
{0, 4}
}RotateTransform({
{2, 4},
{0, 0}
}, -1) ➞ {
{4, 0},
{2, 0}
}N/A