如果只是想过题的话。。调用Math封装的方法就好了XD

public class Solution {
    public int Add(int num1,int num2) {
        return Math.addExact(num1,num2);
    }
}