what is wrong in my code .. idk why it's print green and red both..