Update ReverseTreeSpec--LinkedIn2.py

Added working python solution