Delete Pyramid Exploration Java Code