숫자 비교하기
두 매개변수가 같으면 1 아니면 -1을 반환해준다.
import Foundation func solution(_ num1:Int, _ num2:Int) -> Int { return num1 == num2 ? 1 : -1 }