Gunther Plosch, who has been the fast-food chain’s financial chief since 2016, is leaving the company at the end of the year.