Given a tree were each leaf to root path represents a number, and we were suppos

Please anyone solve it.