Pregunta de entrevista de The Smart Cube

how would you remove stop words? (wanted python code)