Infosys Interview Question

They asked coding questions based on strings and arrays