Pergunta de entrevista da empresa StoneX

Printing the right and left diagonal of a 2D matrix, some SQL questions