Dear Kishan. Please consult https://sites.math.rutgers.edu/~zeilberg/Hist21/q7S.pdf for the full solutions. You got 7 points (out of 10). #1 did not have the "proof", so you lost one point. #5 was not explained at all. I gave you one point for the number of inversions. Best wishes, Dr. Z.