Marvell Technology Interview Question

Create a function that receives an integer and reverse the integer received as parameter bits. Rotate a matrix 90 degrees and print it using for loops after it's rotated on its axis