Why its giving a run errror please help

why its giving a run errror please help
question-FInd it from coding blocks

Hi @Somasree
Can u pls share the ques link… also the code is not giving any run error

may i know what are u trying to do in yr code. can u explain it with comments. this is very simple question… u can simply apply brute force method O(n^2) .
i dont understand what are u trying to do here
image

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.