Add solution for problem 2 js
Add README JS solution for problem 1