Logic Eastern interview question

Based on string ,array, collection and the pattern program .all are the easy question