UnitedHealth Group interview question

Coding exercise involving React UI