Infosys interview question

Arrays, Strings , hashmaps, patterns