France passed a new law banning supermarkets to throw food in an attempt to reduce the waste in the country.