The work done against gravity (= increase in potential energy) is the same in both cases. Extra work might beis done to createif kinetic energy is increased.
If the walker and runner both start and end at rest (or at the same speed), then overallthere is no overall increase in kinetic energy is created in either case. All of theAny kinetic energy which is created by accelerating in between is used up again during deceleration to increase the potential energy.
If the walker is still walking and the runner is still runningare moving faster at the top of the stairs than at the bottom then overallthere is some increase in kinetic energy has been createdin both cases. The runner has created morePresumably the runner's increase in kinetic energy than the walker because he/she is moving faster at the finishgreater.
$$\text{total work done by person = increase in potential energy + increase in kinetic energy}$$
The person who runs up the stairsrunner finishes with a greater increase in kinetic energy, so the total work done by the runner is greater.
Note that it is the overall increase in kinetic energy between start and finish which matters. It makes no difference how the kinetic energy has varied in between. In physicsmechanical terms, person A who walks very slowly for most of the way then runs the last few steps does more work than person B who runs most of the way then walks slowly the last few steps.
Person B will probably feeluses more tiredenergy than person A, but this is a separate issue about the difference between external and internal work. Person B does less external work (because hehe/she has created less kinetic energy) andbut more internal work (because hehe/she has been more active and as a result gotten hotter). In physics (mechanics)mechanics we are usually only concerned about external work.