Amazon interview question

String Manipulation Standard 2D array traversal