Need proof of complexity


#1

Please provide a formal proof of O(log(n + m)) complexity