wrong answers for test case 1 and 2 . Please find out the error.
link to my code - https://ide.codingblocks.com/s/234070
Test case failure
just increase the array size @pulkit_pandey09 https://ide.codingblocks.com/s/234085
i hope its cleared if yes dont forget to mark the doubt as resolved 