This puzzle can be solved in 23 moves--the fewest possible. Move the blocks in the following order: A, B, F, E, C, A, B, F, E, C, A, B, D, H, G, A, B, D, H, G, D, E, F.
219.--THE LETTER BLOCK PUZZLE.
From Amusements in Mathematics by Henry Ernest Dudeney.