Driver code
public static void main ( String [ ] args ) { int A [ ] = { 2 , 2 , 2 , 2 } ; int B [ ] = { 1 , 2 , 3 , 4 } ; int sizeOfA = A . length ; int sizeOfB = B . length ; printPosition ( A , B , sizeOfA , sizeOfB ) ; } }