Find there exits a path from root to leaf having the given sum