Fynd interview question

question on array matrix and string