Google Interview Question

Write code that could travese a matrix by diagonal strips