Java: Find if any path exists with sum from root to leaf