Synoriq interview question

Pattern and array questions