Pergunta de entrevista da empresa Amazon

A leetcode linked list question on manipulating prev and next pointers