public static void main(String args[]){
        List<String> l1 = new ArrayList<>();
        l1.add("quick");
        l1.add("slow");

        List<String> l2 = new ArrayList<>();
        l2.add("brown");
        l2.add("red");

        List<String> l3 = new ArrayList<>();
        l3.add("fox");
        l3.add("dog");

        List<List<String>> input = new ArrayList<>();
        input.add(l1);
        input.add(l2);
        input.add(l3);

        WordCombination wc = new WordCombination();
        wc.printCombinations(input);

    }
Date 07/20/2015
@author Tushar Roy

Given a list of list of Strings. Print cartesian product of lists.
input -> {"Hello", "World"} , {"Game"}, {"Go","Home"}
output ->
Hello Game Go
Hellow Game Home
World Game Go
World Game Home
src/com/interview/recursion/WordCombination.java