Driver code
public static void main ( String [ ] args ) { int age [ ] = { 5 , 15 , 10 } ; int candy [ ] = { 2 , 2 , 2 , 3 , 3 , 4 } ; int n = age . length ; int k = candy . length ; check_distribution ( n , k , age , candy ) ; } }