function solution(a, b) { var answer = 0; a.map((val,i)=>{ return answer+=val*b[i] }) return answer; }