Driver program to test above function
public static void main ( String [ ] args ) { int a [ ] = { 9 , 3 , 9 } ; int b [ ] = { 6 , 1 } ; int n = a . length ; int m = b . length ; System . out . println ( calSum ( a , b , n , m ) ) ; } }