You are given a Circular Singly Linked List of integers. Given a value ‘VAL’, delete the first occurrence of this value in the linked list. If the given value is not present, return the same linked list.
A circular linked list is a sequence of elements in which every element has a link to its next element in the sequence and the last element has a link to the first element. This means that the circular linked list is similar to the single linked list except that the last node points to the first node in the list.
Example:

Input Format:
The first line of input contains an integer 'T', the number of test cases. Then each test case follows.
The first line of each test case contains the elements of the circular linked list separated by a single space and terminated by -1. Hence, -1 would never be a list element.
The second line contains an integer ‘VAL’, the value of the node to be deleted.
Output Format:
For each test case, print the circular linked list after deletion. The elements of the list will be single-space separated, terminated by -1.
The output of each test case is printed in a separate line.
Note :
You don't need to print the output, it has already been taken care of. Just implement the given function.
Constraints :
1 <= 'T' <= 10
1 <= 'N' <= 5 * 10^4
-10^9 <= 'data' <= 10^9 'and 'data' != -1
-10^9 <= 'VAL' <= 10^9 and 'VAL' != -1
Where 'N' denotes the number of elements in the Circular Singly Linked List and 'data' represents the value of those elements.
Time Limit: 1 sec