Up and Down solutions

Up and Down was solved using JavaScript by 2 contestants.