Optimal binary strings recursion

I am unable to understand this problem. Can someone explain it please?