I have an array list which contains two colors.
const data = [\'red\', \'red\', \'blue\', \'blue\', \'red\', \'blue\', \'blue\', \'blue\', \'blue\', \'blue\',