head of a singly linked list

This Question Was Asked By Google

Given the head of a singly linked list, reverse it in place.

Write a function solve that have the following parameter(s):
1.) ll = linked list

Example
Input:
1-->2-->3-->4-->5 Output:
5-->4-->3-->2-->1

Constraints
• The length of the linked list should be greater than 0 and less than 100.