added solution for this array exemple