Create rotateList.cpp