function solution(w, h) { let l=h/w; let count=0; for( let i=1;i<=w;i++){ count+=Math.ceil(l*i); } return (w*h-count)*2; }