멀쩡한 사각형 https://programmers.co.kr/learn/courses/30/lessons/62048
function solution(w, h) { const GCD = (a, b) => (b ? GCD(b, a % b) : a); const gcd = GCD(w, h); return w * h - (w + h - gcd); }