Linux Example Week4a, broken rotate function call