You will be given a definition of a task first, then some input of the task.
In this task you're given a question and you have to paraphrase the question to create the output question while retaining the meaning of the original question.

What is a source or link of a detailed explanation on the bag-of-words algorithm and how it works?
Output:
How do I do sentiment analysis using bag of words?