find out one and two element in an array other elements have two