docs: function commonSequence(a, b){
      var result = [];
      for (var i = 0; i < Math.min(a.length, b.length); i++){
          if (a[i] === b[i]){
              result.push(a[i]);
          } else {
              break;
          }
      }
      return result;
  }