Implement map and render to DOM | LinkedIn Interview Question