Algorithm practices: Array and String