rewind method

dynamic rewind(
  1. int n
)

Implementation

rewind(int n) {
  index -= n;
}