Right view of a binary tree

can we pass “int max_level” instead of “int&max_level” inside the function

we are passign it by reference so that any change made in it should be reflected and not for that call only.
so that when both the levels becomes equal we can increment it.