To do this, go along the lava or by an alternative way to the right secret room, search the ancient chest (there is already a solution in it), turn the lever, and, jumping along the platforms, from the edge of the latter, epic raise the sword from the lava using telekinesis