Update word position solution.
update stack.js

`push/pop` maybe a better choice.
enhance stack and test
coding style