class Solution { public: int jumpFloorII(int number) { int key = 1; int i; for( i = 0; i < number-1; i++) { key = key * 2; } return key; } };