Hermione:
‘A lot of the greatest wizards haven’t got an ounce of logic, they’d be stuck in here for ever.’
To solve this challenge Hermiones Muggle upbringing allowed her to solve the challenge with logic, something which apparently doesn't come to wizards naturally.
Tom Riddle/Voldemort also had a Muggle upbringing, so had that 'muggle' logic and high intellect. Quirrell was also the Muggle Studies teacher, so perhaps his appreciation for something as 'mundane' as a logic puzzle meant it wasn't too challenging.
I'm more impressed with their break in at Gringotts without being caught.