Help me solve the problem

hello @
in line 12 , it should be arr[j] in place of j