Amazon interview question

They asked questions on arrays and strings mostly