Dell Technologies Interview Question

Reverse linked list in best time and space complexity