given boxes find maximum height such that above box has smaller base..boxes can be repeated