One possible solution if your numbers are always three digit:
x = ['123', '456', '789']
A = ['123', '456']
''.join(A) in ''.join(x)
B = ['456', '123']
''.join(B) in ''.join(x)
C = ['123', '789']
''.join(C) in ''.join(x)
Although, prone to bugs for example:
D = ['1', '23']
''.join(D) in ''.join(x)
outputs True