Create a function which validates whether a bridge is safe to walk on (i.e. has no gaps in it to fall through).
IsSafeBridge("####") ➞ true
IsSafeBridge("## ####") ➞ false
IsSafeBridge("#") ➞ trueYou can expect the bridge's ends connecting it to its surrounding.