Function recursively prints the strings having space pattern i and j are indices in ' String ▁ ▁ str ' and ' buf [ ] ' respectively
static void printPatternUtil ( string str , char [ ] buf , int i , int j , int n ) { if ( i == n ) { buf [ j ] = ' \0' ; Console . WriteLine ( buf ) ; return ; }