Vector doubt quiz

in ques 7 please explain how manual time complexity is o(m+n)) and not o(max(m,n))?