The issue is Exercise 1.47 (d) in Elliot Mendelson's "Mathematical Logic". The exercise is to prove $(\lnot C\implies\lnot B)\implies(B\implies C)$ by using the three axioms $(A1,A2,A3)$ without using the Deduction theorem (and without any hypothesis).
The axioms are:
$A1: B\implies(C\implies B)$
$A2: (B\implies(C\implies D))\implies((B\implies C)\implies(B\implies D))$ $A3: (\lnot C\implies\lnot B)\implies((\lnot C\implies B)\implies C)$
The only inference rule is MP.
I have a proof but it is long. My proof is based on the proof of Lemma 1.11 (d) which proves $(\lnot C\implies\lnot B)\implies(B\implies C)$ but uses the Deduction Theorem (Proposition 1.9). Then, like Mendelson suggests in exercise 1.49, I apply the process used to prove the Deduction Theorem to the steps. To be precise, I assume $(\lnot C\implies\lnot B)$ as a Hypothesis $H$. If $C_1,C_2,\dots,C_n$ is a proof of $(B\implies C)$ that uses $H$ then stepwise I prove $H\implies C_i$ for $i=1,\dots,n$. The last step is $H\implies C_n$ which is what we want to prove.
This way requires around 4 uses of Axiom1, 4 of Axiom2, 1 Axiom3, and 9 uses of Modus Ponens.
Do I miss a shorter proof?
I don't know how to write those fancy Bs and those fancy Cs that Mendelson uses in that text. Mendelson has parentheses (deliberately) around all wffs in when talking about the axiom schema, and that makes good sense since it makes substitution for wffs by other wffs just a matter of finding similar symbol patterns. We don't need to infer a meaning and recognize a pattern, we only need to recognize a pattern when you actually write wffs.
Due the correspondence between Mendelson's semantic statement forms and Mendelson's syntactic wffs, wffs have similar properties to statement forms. Mendelson indicates in exercise 1.18 on p. 12 of the fifth edition that instead of writing statement forms as he usually does, that Polish notation can get used, which looks like any prefix notation according to him. The following system has symbols more like the original Polish notation of Lukasiewicz, Meredith, Prior, and other authors whose papers you can read for free via old issues of the Norte Dame Journal of Formal Logic. Due to how Mendelson writes in his Schaum's Outline of Boolean Algebra, it appears that we can faithfully represent Mendelson's intent using bold capital letters instead of fancy capital letters. The following puts each axiom schema of the system in Polish notation that I'll use next to the corresponding axiom schema of Mendelson's system.
Ax 1 CbCcb ..................... (B -> (C -> B))
Ax 2 CCbCcdCCbcCbd ... ((B -> (C -> D)) -> ((B -> C) -> (B -> D)))
Ax 3 CCNcNbCCNcbc .....((($\lnot$C) -> ($\lnot$B)) -> ((($\lnot$C) -> B) -> C))
A proof in a system using Polish notation of a certain length implies that a proof in Mendelson's system using Mendelson's notation of the same length can get written.
So, a proof can get written in Mendelson's system in 21 steps if we include the original 3 schema. If we don't, it can get done in exactly 18 steps.