CoverWallet interview question

One algorithm question per technical review