complete very simple algorithm cm(Climb Mountain)