Explaining a fundamental ethical concept you should have learned in primary school when writing your first book reports is not arguing in bad faith.
SO’s license requires attribution.
If you don’t want to be a plagiarist, you either need to include attribution, or you need to rewrite the solution in entirely your own words.