Create prob18.js

Doesn't work yet... 
Need a better algorithm.