Write a method that, given an array list of strings, returns an array list of array lists, so that the ith list contains all strings of length i from the original list. For example, when called with
["Mary", "had", "a", "little", "lamb"]
return the list
[null, ["a"], null, ["had"], ["Mary", "lamb"], null, ["little"]]