Amazon Interview Question

Questions on strings and arrays