Contlo interview question

Reverse a linkedlist Questions on javascript flat a 2d data