finding duplicate number in array