Can you solve this hat riddle?

1226

Here’s a great way to start your week. Try and solve this riddle?