Driver code
public static void Main ( String [ ] args ) { int [ ] array = new int [ ] { 1 , 2 , 3 , 4 , 4 , 4 , 5 , 6 } ; Point p = sequence ( new List < int > ( array ) ) ; Console . WriteLine ( " Repeated ▁ element ▁ is ▁ " + p . first + " , ▁ it ▁ appears ▁ " + p . second + " ▁ times " ) ; } }