Bumble Inc. interview question

A couple of SQL problems