Backbase interview question

Some assignment