Solving Facebook Hacker Cup “Balanced Smileys” with DCG and B-Prolog | Hacker News Reader