Utimaco Safeware Interview Question

Given an arbitrary data structure, determine how much memory it would use in 32-bit and 64-bit operating systems.