Create Hw5-4.js

Added answer for homework 5.4