Error not resolving

when i am running the script it is showing memory error … i tried searching stack overflow but not found any fruitful information please tell me how to resolve it?

Please share the script which you are running.