Fox Robotics interview question

Q. How would you solve a specific problem programatically, (Like 5 queen problem, etc)