Driver method
public static void Main ( String [ ] args ) { String [ ] arr = { " ccc " , " aaa " , " ccc " , " ddd " , " aaa " , " aaa " } ; List < String > seq = new List < String > ( arr ) ; Console . WriteLine ( secMostRepeated ( seq ) ) ; } }