Do you get penalized if you use somebody's post title with few words changed in the title to match your post?
No. There are lots of pages out there using similar or identical page titles. There's a finite number of them available and its unreasonable to expect them all to be different.
What does matter is if the page's contents are very similar or identical. In this case that is low quality content and bad for SEO.