1 testcase is not passing
hi @jatinkumarjk2001, we have given an circular array , so your program fails for the cases like
3
3 2 1
your output according to your logic : -1 -1 -1 but your code is not giving any output
answer: -1 3 3
refer this i have explained the question : In find the greatest number question, it is not clear what the question wants
@jatinkumarjk2001, refer to this link https://ide.codingblocks.com/s/206129
I have explained the approach along with the code
In case of any doubt feel free to ask 
If you got the answer then mark your doubt as resolved