solutions for ch.1. "Arrays and Strings"