For this Question: Given a singly linked list consisting of N Nodes, your task is to convert it into a circular linked list.

Note:- For custom input you will get 1 if your code is correct else you get a 0.

<b>Note:</b>Examples in Sample Input and Output just shows how a linked list will look like depending on the questions. Do not copy-paste as it is in <b>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>MakeCircular()</b> that takes head node of singly linked list as parameter.

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

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

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

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