This is Big O notation algorithm is going to complete in one step


#1

in this algorithm our program is going to complete olin one step there are O(N+M) and O(1)
because there are two for loops in this program