Unity Interview Question

How would you approach documenting a piece of software from scratch?