adding completed problem-1.js