solution of Array_Placement_element .