The question is as follows (the classic nine balls question):
"You have nine balls. One of them is heavier, and you are given a balance to find out which one is heavier. You are allowed to use this balance twice and it tells you which side is heavier."
I was given an explanation, but I cannot make sense of it. This is extracted from page 95 of Cracking the Coding Interview. I will add more details if needed included the answer provided in the book. I am currently preparing for a coding interview as you may have guessed.