You are given a Finder class with the following methods: find(idx) — selects the block at the given index; color(newColor) — applies a color to the previously found block; shift() — moves the block down slightly. All methods must be chainable (return this or equivalent). The problem progresses through several…