Microsoft interview question

Know array traversal well