Local Well-Posedness of Strong Solutions for the Nonhomogeneous MHD Equations with a Slip Boundary Conditions