Western Union interview question

Higher order component and map function