A new 'hacky' phone is launched, which has the feature of connecting to any Wi-Fi network from any distance away, as long as there aren't any obstructions between the hotspot and the phone. Given a string, return how many Wi-Fi hotspots I'm able to connect to.
P.*.#. You cannot access a hotspot if they are behind one of these obstructions.nonstop_hotspot("* P * *") ➞ 3
nonstop_hotspot("* * # * P # * #") ➞ 1
nonstop_hotspot("***#P#***") ➞ 0