Map Function For Array In Javascript Interview