Mobileye Interview Question

Write a method to return all subsets of a set