Update problem5.js