Sorting: by frequency — Python practice — Live Code Tutor