Question

Write a function that returns the Cartesian products of the given two sets?

Login to Submit

Examples

Input: [1, 2] [3, 4]
Output: [[1, 3],[1, 4],[2, 3],[2, 4]]