Question

Write a function to find the difference of two sets?

Login to Submit

Examples

The difference of two sets A and B is a set of elements contained in A which are not in B

Input: [1, 2, 3, 4, 5, 6],  [4, 5, 6, 7]
Output: [1, 2, 3]