Resolved CodeClimate warnings in Problem011.js and Problem017.js [ci skip]