Microsoft Interview Question

Dungeons and dragons problem. Other question I don't remember.