Update program.js

Added the official solution