Apra Labs interview question

They asked dsa question on strings and arrays.