nums[][] = [ [ 2 5 1 3 8 9 4 6 ] [ 3 5 6 2 9 8 4 ] [ 1 3 7 6 9 ] ]
# 
found = 1
for e in nums[1][]
   for l = 2 to len nums[][]
      found = 0
      for x in nums[l][]
         if e = x
            found = 1
            break 1
         .
      .
      if found = 0
         break 1
      .
   .
   if found = 1
      r[] &= e
   .
.
print r[]
