Java program to count ways to divide a String in two parts a and b such that b / pow ( 10 , p ) == a
import java . util . * ; class GFG { static int calculate ( String N ) { int len = N . length ( ) ; int l = ( len ) / 2 ; int count = 0 ; for ( int i = 1 ; i <= l ; i ++ ) {