There are two ways to handle this reasonably gracefully, and a lot of ways that suck.
1. In private, tell the person "I don't think your deodorant is working well enough. Just thought you ought to know."
2. Go to their manager, and have the manager say pretty much the same thing, not mentioning that anyone but the manager noticed anything.
Almost anything else comes off as boorish.
I've worked in places where it was an issue. And it's a very difficult one to address. "Please be quieter" is much more socially acceptable than "Please use deodorant".