For this Question: Given a circular linked list consisting of  N nodes and an integer K, your task is to add the integer K at the end of the list.

<b>Note: 
Sample Input and Output just show how a linked list will look depending on the questions. Do not copy-paste as it is in custom input</b><b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>Insertion()</b> that takes head node of circular linked list and the integer K as parameter.

Constraints:
1 <=N <= 1000
1 <= Node.data, K<= 1000Return the head node of the modified circular linked list.Sample Input 1:-
3
1- >2- >3
4

Sample Output 1:-
1- >2- >3- >4

Sample Input 2:-
3
1- >3- >2
1

Sample Output 2:-
1- >3- >2- >1, I have written this Solution Code:    public static Node Insertion(Node head, int K){
        Node node=head;
           while ( node.next != head) 
    {node = node.next; }
    Node temp = new Node(K);
    node.next=temp;
    temp.next=head;
    return head;}
, In this Programming Language: Java, Now tell me if this Code is compilable or not?