Ruby method that accepts an array of strings and returns an array containing the length of those strings