Solution for FunSets