Opendoor interview question

Implementing simplified version of Excel