text: 
  module.exports = function towelSort (matrix = []) {
    const result = [];
    for (let i = 0; i < matrix.length; i += 1) {
      if (i % 2 !== 0) {
        matrix[i].reverse();
      }
      result.push(...matrix[i]);
    }
    return result;
  }
  