Adorable Riley Madison, 3, got her first lesson how to flip the bird from an unlikely furry friend 