Global variable is giving wrong output

When i run the code in my local machine it gives correct output but when i run on crio platform it says

Traceback (most recent call last):
File “CommonAncestor.py”, line 56, in
print(result.val)
AttributeError: ‘NoneType’ object has no attribute ‘val’

can anyone help regarding this

Discussed on Slack. Error stemmed from passing primitive value instead of Node object. Primitive value does not have a property called val. Resolved.

Closing this topic as your issue is resolved by the mentor. If it is still not resolved, Kindly un-mark the accepted solution or create a new topic and post this question as a reference link in the description of the new topic.