problem 5.js