I watched video-explanation provided, but in that explanation input and output are same.
Here sample input is given as -
5
(6 4) (4 0) (8 4) (9 1) (6 2)
And sample output as -
(6 6) (4 6) (8 6) (9 4) (6 8)
When we are just making deep copy of given linked-list, then how this (6, 4) --> becomes (6, 6)
OR how (4,0) --> becomes (4,6) in the output