Wealthsimple Interview Question

A financial based problem