Oak Street Health Interview Question

Sort a list of words by most frequency