text: 
  // You should implement your task here.
  
  module.exports = function towelSort (matrix) {
    if (!matrix || !matrix.length) return [];
    matrix.forEach((x, i) => { if(i % 2) x.reverse() });
    return [].concat(...matrix);
  }
  