• + 0 comments

    In C++:

     int modulo = 1000000007;
    n = n % modulo;
    return (int)((n * n) % modulo);
    

    } `