Answer: Arsenic.
Step 1: Arsenic has a strong affinity for keratin-rich and mineralised tissues, so it is deposited and stored in hair, nails and bones.
Step 2: Because arsenic stays bound in the skeleton, it can be recovered and detected even when soft tissues have wasted away (emaciation) or even after the body has been burnt or skeletonised. This is a classic forensic point for exhumed or charred remains.
Step 3: Lead also deposits in bone but the question's specific teaching point (detection in bones even after burning/conflagration) is the well-known arsenic fact in forensic texts. Mercury and cadmium concentrate mainly in the kidney and soft tissues, so they are not reliably found in burnt skeletons.
Hence arsenic is the answer.
Ref: Reddy, The Essentials of Forensic Medicine and Toxicology.