WithMe interview question

How would you build out a demand function from scratch?