Math problems usually have one right/wrong answer. Many interview 'challenges' have multiple ways of doing something correctly. Without necessarily knowing any more about the context of a problem beyond a few sentences, you work with what you've been given. You can deliver a working solution but if it's not the way they were expecting... you're out of the running.