Signed-off-by: zhou <zhoucong07@gmail.com>complete using a number and timer to record the number
whose frequency of occuration is more than half of size of array.