Global similarity

Try it online:

Sequence 1: Sequence 2: