In find the greatest number question, it is not clear what the question wants

I am not able to get what the question is trying to say, can I get more test cases and their expected output.

In this question you are given a circular array , An array is called circular if we consider first element as next of last element , and for i : [0 ,n-1 ] you have to find next greater element of A[i]
for eg : if you are given array A[4]={1,2,3,4]
output : [2,3,4,-1]
Reason : next greater element of 1 is 2 and for 2 its 3 and for 3 its 4
for 4 its next element is 1->2->3->4->1->2 ->3…(as array is circular) as there is no element greater than 4 we need to print -1.

Some more examples:
A[5] : 5 4 3 2 1
output : out[5] = -1 5 5 5 5
Reasoning : as array is circular thus it will be like 5 4 3 2 1 5 4 3 2 1 5 4 3 2 1 …
thus there is no greater element than 5 thus out[0]=-1 for 4 we have 5 and for 3 we again have 5 as 5 comes before 4 and so on

A[5] = 6 6 6 6 6
output = -1 -1 -1 -1 -1

@Jun18APP0112 Abhijeet has already told you the problem statement in simplest way.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

@O17LPOLA020023 Is your doubt resolved?

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.