Improper Explanation of the question


Spent hell a lot of time on thinking different cases, which do not exists in this question.
The question should have been explained well.
All you have to do is count the #good words(including duplicates) in the review and sort the reviews on this count if count of two reviews is the same then don’t shuffle them.