array solution to P0202