The words or not in whether or not serve no purpose. Whether already connotes a choice, so adding or not adds no meaning. Writers who use this expression dilute the power — and with it the effectiveness — of their writing. More effective writers will simply delete or not.
That means that the example sentence in the cropped graphic above is less effective. A more effective version would read