The Best Riddle I’ve Ever Heard. Can You Solve This Prisoner Hat Riddle?

2

Do not scroll down unless you want to see the solution!

.

.

.

.

.

.

.

.

.

.

.

.

.

solution-1