Question

Write a function to find the intersection of two sets?

Login to Submit

Examples

Intersection of two sets A and B is a set which contains all the common elements of both sets

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