## Task:
You have to write a function **pattern** which returns the following Pattern(See Examples) upto (2n-1) rows, where n is parameter.
### Rules/Note:
* If the Argument is 0 or a Negative Integer then it should return "" i.e. empty string.
* All the lines in the pattern have same length i.e equal to the number of characters in the longest line.
* Range of n is (-∞,100]
## Examples:
pattern(5):
        1    
       121   
      12321  
     1234321 
    123454321
     1234321 
      12321  
       121   
        1    
pattern(10):
             1         
            121        
           12321       
          1234321      
         123454321     
        12345654321    
       1234567654321   
      123456787654321  
     12345678987654321 
    1234567890987654321
     12345678987654321 
      123456787654321  
       1234567654321   
        12345654321    
         123454321     
          1234321      
           12321       
            121        
             1         
pattern(15):
                  1              
                 121             
                12321            
               1234321           
              123454321          
             12345654321         
            1234567654321        
           123456787654321       
          12345678987654321      
         1234567890987654321     
        123456789010987654321    
       12345678901210987654321   
      1234567890123210987654321  
     123456789012343210987654321 
    12345678901234543210987654321
     123456789012343210987654321 
      1234567890123210987654321  
       12345678901210987654321   
        123456789010987654321    
         1234567890987654321     
          12345678987654321      
           123456787654321       
            1234567654321        
             12345654321         
              123454321          
               1234321           
                12321            
                 121             
                  1              
pattern(20):
                       1                   
                      121                  
                     12321                 
                    1234321                
                   123454321               
                  12345654321              
                 1234567654321             
                123456787654321            
               12345678987654321           
              1234567890987654321          
             123456789010987654321         
            12345678901210987654321        
           1234567890123210987654321       
          123456789012343210987654321      
         12345678901234543210987654321     
        1234567890123456543210987654321    
       123456789012345676543210987654321   
      12345678901234567876543210987654321  
     1234567890123456789876543210987654321 
    123456789012345678909876543210987654321
     1234567890123456789876543210987654321 
      12345678901234567876543210987654321  
       123456789012345676543210987654321   
        1234567890123456543210987654321    
         12345678901234543210987654321     
          123456789012343210987654321      
           1234567890123210987654321       
            12345678901210987654321        
             123456789010987654321         
              1234567890987654321          
               12345678987654321           
                123456787654321            
                 1234567654321             
                  12345654321              
                   123454321               
                    1234321                
                     12321                 
                      121                  
                       1
def pattern(n):
    lines = []
    for c in range(1,n+1):
      s = (' ' * (n-c)) + ''.join([str(s)[-1] for s in range(1,c+1)])
      lines += [s + s[::-1][1:]]
    lines += lines[::-1][1:]
    return '\n'.join(str(x) for x in lines)

def pattern(n):
    lines = []
    for c in range(1,n+1):
      s = (' ' * (n-c)) + ''.join([str(s)[-1] for s in range(1,c+1)])
      lines += [s + s[::-1][1:]]
    lines += lines[::-1][1:]
    return '\n'.join(str(x) for x in lines)
