A friend of mine had to solve this problem for a job interview. He couldn’t complete it within the time limit, so he passed it on to me to see if I could figure it out. But the truth is, I’m having trouble with it too. I’m wondering if there’s an approach I’m missing, maybe related to other problem and can be solved using a known technique. here is the problem: enter image description here "B.BB..B" # expected return 1 "..BB..." # expected return 1 "..B....B.BB" # expected return 2 "BB.BBB" # expected return -1 "B.B.B." # expected return 0 Continue reading...