HCLTech Interview Question

about a linked list. matrix rotation