codewar.com, i meet difficulty.Without correct return.But i use console.log() have correct value.i feel no good.Can you help me? : when i do code pratice in codewar.com, i meet difficulty.Without incorrect return.But i use console.log() have correct value.i feel no good.Can you help me?

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-js -->



    function findN(m,n = 1,v = 0){
        if(m == 1){
            return n;
        }else if(v < m){
            v += n * n * n;
            n++;
            let newN = n - 1;
            if(v == m){
                console.log(newN);
                return newN;
            }
            newN = null;
            findN(m,n,v);

        }else if(v > m){
            return -1;
        }
    }
    findN(4183059834009);

<!-- end snippet -->

