solved problem1 in javascript section