WeWork interview question

Went through the assignment alone.