The subset?() is an inbuilt method in Ruby returns true if the set is a subset of the given set.
Parameters: The function takes a mandatory parameter with which it is ch
Return Value: It returns self.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.