/*
Description:
German music producer Herbert Von Klunkerkunt has been using the same formula to make industrial techno for over twenty years. Producing at 120 beats per minute, each 4-beat bar contains:

4 kick drum hits
8 hihat hits
2 clap hits
Write a programme that takes the number of minutes and returns the number of "kicks", "hihats" and "claps" Klunkerkunt will need to fill each bar of his new track with percussion in an array. The total number of kicks, hihats and claps should be rounded to the nearest integer.

function perc (3) {}
// should return ["360 kicks", "720 hihats", "180 claps"]
The function should return "invalid track time" if the number of minutes is:

less than 1
more than 100
not a number
function perc (0.22) {}
// should return "invalid track time"
*/
function perc(mins) {
  if (mins > 100 || mins < 1 || typeof mins !== "number")
    return "invalid track time";
  return [
    `${Math.round(mins * 120)} kicks`,
    `${Math.round(mins * 240)} hihats`,
    `${Math.round(mins * 60)} claps`
  ];
}
