It’s gone from one of the hottest names to the S&P 500’s biggest loser. How it can rise 30% in a year.