Driver Code
public static void Main ( String [ ] args ) { String [ , ] arr = new String [ , ] { { "12:00 : AM " , "11:55 : PM " } , { "12:01 : AM " , "11:50 : AM " } , { "12:30 : AM " , "12:00 : PM " } , { "11:57 : AM " , "11:59 : PM " } } ; String P = "12:01 : PM " ; int N = arr . GetLength ( 0 ) ; Console . WriteLine ( countOverlap ( arr , N , P ) ) ; } }