MAQ Software interview question

they asked me to implement rotate linked list program anticlockwise