Solved no empty set case