Time Complexity?

What will be the time complexity for this case?

hi @swastikswarupmeher the time complexity will be O(m+n)