Code not working

This is the link for my code


Please check and help me out with it.

@amanb25
why are taking the default size of arr[] as 10. Also i think you have missed the brackets for the while loop in ispossible function. Do these changes.
I am also not sure about where are you submitting it because your input format doesn’t matches with that.
So, after changing the above suggestions if it doesn’t solve then let me know, share the corrected code ide link and the problem link where you are submitting.
If you are able to solve it then please mark this doubt as resolved.