Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use the pointer to the previous node to reach the <code>head</code> node.
Solve with full IDE support and test cases