Up and Down solutions

Up and Down was solved using MATLAB by 1 contestant.