Optimised [used enumerable group_by to partition by length]
Optimised [used enumerable group_by to partition by length]