Pregunta de entrevista de LSEG (London Stock Exchange Group)

write code to check whether the array is symmetric