BackDSA1 reportTTeslaReverse Linked List0upvotesI was asked thisProblem Reverse a singly linked list and return the new head. Example 1->2->3->4->5 => 5->4->3->2->1 Constraints 0 ≤ nodes ≤ 5000 Follow-up Do it both iteratively and recursively; discuss the space difference.Follow-ups(2)Hints0/3Show a hintDomainsBackend EngineerReport