First Student interview question

Implement map in three functions