Study the given pattern carefully and select the number that can replace the question mark (?) in it.