Example 1
1 <= length <= 5 * 1040 <= index < length0 <= val <= 1090 <= snap_id < (the total number of times we call snap())At most 5 * 104 calls will be made to set, snap, and get.Example 1
1 <= length <= 5 * 1040 <= index < length0 <= val <= 1090 <= snap_id < (the total number of times we call snap())At most 5 * 104 calls will be made to set, snap, and get.