This question will probably be closed in a few minutes. It is a duplicate but I couldn't find the question using with meta search.
Nothing wrong with that, so long as you give proper attribution.
Of course, it is better to add details and making it a better answer.
However, if the older answer fully answers the new question, chances are good that the new question is a duplicate of the older one and should be closed as such.