This is for a homework assignment so it would be great to have a hint or an explanation of how to do it. In a certain region in space, the electric field is given by
$\vec{E}(r) = \dfrac{A}{r} \hat{r} + \dfrac{B \sin{\theta} \cos{\phi}}{r} \hat{\phi}$
What is the charge density in the region?