Cvent interview question

matrix traverse