MAQ Software Interview Question

they asked me to implement rotate linked list program anticlockwise