Implement OutOfMemory string list solution