Function to find if the given number is sum of the cubes of first n natural numbers
static int findS ( int s ) { int sr = isPerfectSquare ( s ) ; if ( sr == - 1 ) return - 1 ; return isTriangular ( sr ) ; }