BNY interview question

Implement map from the scratch. OOPS