Print Patterns Using Functions And Mapping