Click on the first chest in the dungeon. Say Put the code. you click on the letter one by one and then click on confirm.