A South Carolina principal has taken a third job working overnight shifts at Walmart to help his struggling school, and he said the response by the community and the country inspired by his example have “overwhelmed” him.