What does "do the trick" mean?

1. Definition (expr.) work, suffice, do what needs to be done
Examples If you have a headache, you should take some aspirin. I’m sure that will do the trick.

1. Definition (expr.) work, suffice, do what needs to be done
Examples If you have a headache, you should take some aspirin. I’m sure that will do the trick.