text: function travelling(input) {
      let destination = input[0];
      let budget = Number(input[1]);
      let savings = 0;
      let index = 1;
  
      while (destination !== "End") {
          index++;
  
          while (savings < budget) {
              savings += Number(input[index]);
              index++;
          }
          console.log(`Going to ${destination}!`);
          destination = input[index++];
          budget = Number(input[index]);
          savings = 0;
      }
  }
  travelling(["Greece",
  "1000",
  "200",
  "200",
  "300",
  "100",
  "150",
  "240",
  "Spain",
  "1200",
  "300",
  "500",
  "193",
  "423",
  "End"]);