How do you handle pattern recognition questions such as identifying the next number or shape in a sequence?