wilbur pig tinker array he array a1a2an initially consist n zero at step choose index add 1 element aiai1 subtract 1 element aiai1an his goal end array b1b2bn of course Wilbur want achieve goal minimum number step ask compute value