Can you tell whats wrong with my code?
in the case where n is not equal to m, your code would try to access the negative index in array a or b which might throw runtime error.
in the case where n is not equal to m, your code would try to access the negative index in array a or b which might throw runtime error.