Each riddle has a 3 digit code you have to work out. Solving it will give you 5 digits to unlock the boss fight.