Wefight interview question

How should we do this? How could we improve this?