Concept Flow - Array methods (length, include?, flatten)
Start with Array
Call length
→Return number of elements
Call include?(item)
→Check each element
If found, return true
If not found, return false
Call flatten
→Check each element
If element is array, expand it
If not, keep element
Return new flattened array
End
Start with an array, then call length to get count, include? to check presence, or flatten to expand nested arrays into one.