Max Sequence of Equal Elements in Array