Saratoga home inspectors saw this uphill water heater discharge pipe. This is a code violation and a liability. We recommend review by a licensed plumber.