Should I use a comma before "for example"

Solution 1:

You definitely need a punctuation mark there, either a comma or a full stop. For the latter, see https://www.quickanddirtytips.com/education/grammar/can-i-start-a-sentence-with-a-conjunction