I have the code below, which finds SOS triplets across a 2D list.
import random n = 6 m = 7 a = [[i * j for j in range(m)] for i in range(n)] for i in range(n