It's certainly not impossible. Google Deepmind has developed an algorithm that is able to resolve a notoriously knotty “100-hat riddle.” The riddle requires such high levels of lateral thinking and problem solving that it's been posed during interviews for investment bank Goldman Sachs and, ironically, Google.