Write the function to simulate `DROP` query between first and last state
Write the function to simulate
DROPquery between first and last state