Let the given dictionary be following
static readonly String [ ] dictionary = { " GEEKS " , " FOR " , " QUIZ " , " GUQ " , " EE " } ; static readonly int n = dictionary . Length ; static readonly int M = 3 , N = 3 ;