I am not sure if I understood what is a "Boolena string" Heres the complete question: Given a Boolean string, the DIVIDE(i, j) function returns a k such that k = i−1,