public int getWinner2(int[] events) {
		HashMap<Integer, Integer> map = new HashMap<Integer, Integer>();
		int max = 0;
		int tmp = 0;
		for (int event : events) {
			int count = 0;
			if (map.containsKey(event)) {
				count = map.get(event);
			}
			count++;
			map.put(event, count);
			if (max < count) {
				max = count;
				tmp = event;
			}
		}
		return tmp;
	}