Logic Eastern Interview Question

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