Julia Stewart was denied the Applebee’s CEO role despite turning the company profitable. So she joined rival company, IHOP.