The sequences do not have to be continuous. The test case incorrectly assumed so. Thanks to Adam Warski & Lukasz Antoniak for the help.
The sequences do not have to be continuous. The test case incorrectly assumed so. Thanks to Adam Warski & Lukasz Antoniak for the help.