class SnapshotArray: # Constructor def __init__(self, length): # Write your code here pass # Function set_value sets the value at a given index idx to val. def set_value(self, idx, val): # Write your code here pass # This function takes no parameters and returns the snapid. # snapid is the number of times that the snapshot() function was called minus 1. def snapshot(self): # Replace this placeholder return statement with your code return -1 # Function get_value returns the value at the index idx with the given snapid. def get_value(self, idx, snapid): # Replace this placeholder return statement with your code return -1