The majority of the board of directors votes to fire the CEO. The shareholders (51% of whom are the CEO) vote for a new board of directors, displacing the old ones. The new board of directors rehires the old CEO.