Thoughtworks interview question

the mars problem