Amazon interview question

Coding exercises about working with arrays and matrices