They bought QDOS (Quick and Dirty OS): https://en.wikipedia.org/wiki/86-DOS
And Dos 1.x's feature set was so small that a single programmer should be able to reproduce the it set in well under a year of full-time work. IBM's BIOS did most of the heavy lifting anyway.
(edit: fixed name!)
One of these two assertions may not be true.
GORILLAS.BAS https://en.wikipedia.org/wiki/Gorillas_(video_game) DONKEY.BAS https://blog.codinghorror.com/bill-gates-and-donkey-bas/
Q.E.D.
Keep in mind that this is BASIC, and, as a result, is mostly targeted at people with little to no programming experience. Ideally, someone would be able to open the script up and probably learn something from it.
Err, tons of programmers in that era could program a BASIC or something similar. His skills are not particularly impressive given the time. At best, he was a decent programmer.
Contrast to someone like Bill Joy or Dennis Richie and you get my point.
Outside of the Bill Gates is evil bubble, he's regarded as a technical genius and a business genius; which is why he was able to trounce his competition. (Basically, he wrote better code and ran better businesses.)
All of the late 1970s and early 1980s personal computers ran Bill Gates' basic. Basic was their operating system.
Why would someone like this need to copy someone else's OS? He didn't, because he was mart enough to write his own OS, and had the experience to do so. The function number thing is no different then Android copying Java's API.