Deloitte Interview Question

Reverse the link list present with given complexity