• help with diagonals

Question related to mission Find Sequence

 

I have been working on this task but cannot find an algorithm to find diagonal sequences, any help will be appreciated. My actual code is:

def obtener_d_princ(m):
    [SPOILER]