Google interview question

Write code that could travese a matrix by diagonal strips