Promise (CA) interview question

Basic ml foundations and coding.