problem104.js work in progress