You can try a blackout, but if its from direct sun it will just come back. A uv filter will zap the green water. Its a unicellular algae bloom. I prefer to add quick growing bog plants (things like anacharis or hornwort) to outcompete the algae. You could also consider blinds in the window and blacking out the back and sides of you tank to limit the sun.