birthday cake candles hackerrank solution in javascript
let max = candles.reduce((a,b)=>{
return Math.max(a,b)
})
let number = 0;
for(let i=0; i<candles.length; i++){
if(candles[i] == max){
number += 1
}
}
return number
// Paste this code inside the function.