First compute the sum of the length of the problem sequence and the sum of one and one using checked addition using checked addition. Then Build a table from the sequence consisting of the difference of one and one using checked subtraction followed by the difference of one and one using checked subtraction values in encounter order. Until its length reaches that computed value length, extend it using nonadjacent continuation over the problem sequence. Return the value at position the difference of the length of the completed table and one using checked subtraction in the completed table.