Freshworks Interview Question

Collect diagonal values from 3*3 matrix to a new array