It's been a year to forget for Dollar General (NYSE: DG) investors, with shares of the discount store giant down 40% in 2024.