Function to find queries to check if a sweet of given type can be eaten on a given day or not
static void sweetTypeOnGivenDay ( int a [ ] , int b [ ] , int n , int k , ArrayList < Pair < Integer , Integer > > q ) {