Driver Code
public static void Main ( String [ ] args ) { String [ ] s = { " * . * " , " * . . " , " . . . " } ; int n = s . Length ; int m = s [ 0 ] . Length ; Pair < int , int > rs = findFourthVertex ( n , m , s ) ; Console . WriteLine ( rs . first + " ▁ " + rs . second ) ; } } class Pair < A , B > { public A first ; public B second ; public Pair ( A first , B second ) { this . first = first ; this . second = second ; } }