As you know, when it comes to an animal that we as Muslims are not allowed to eat, its urine and faeces are najis.
If such an animal was to swallow something solid, like a coin, and then it comes out with the animal's waste, the only thing that we would need to do is wash it to make the coin tahir.
The problem with this coffee been is that although it is 'solid', but when it is in the digestive system of this animal, the Asian palm civet, there is a change in the structure and affect in the flavour of the coffee bean.
The coffee bean before being digested is different to after it has been defacated by the animal.
This is why some of our esteeemed Fuqaha, like Ayatullah al-Udhma Seyid al-Sistani consider it to be haram.
Please refer to the fatwa of your own Marja' Taqleed.
And Allah knows best.