Selling 10 million books in 24 hours is (relatively) easy. Just put J. K. Rowling's name on the cover next to the phrase "Harry Potter and..."
The hard part is actually getting that many physical copies into the hands of that many people, that fast. For that, you need production and distribution technologies that didn't exist when the first Potter book came out. Forbes explains.