only two test case showing
@kumarujjwal9907 hello ujjwal, pls check output of ur code for following input 4 9 9 9 9 4 9 9 9 9