Manhattan Associates interview question

core java questions esp strings and collection