Bumble Inc. interview question

An algorithmic problem