Sorted insert for circular linked list
Given a sorted circular linked list, your task is to insert a new node in this circular list so that it remains a sorted circular linked list.Examples:Input: head = 1Â â2Â â4, data = 2Output: 1Â â2Â â2Â â4Explanation: We can add 2 after the second node.Input: head = 1Â â4Â â7Â â9, data = 5Output: 1Â â4Â â5Â â7