SAP Interview Question

leetcode medium about manipulating linked lists