GCHQ has been known to do this for recruiting purposes.[1]
[1] https://web.archive.org/web/20130912120456/https://canyoufin...
[1] https://web.archive.org/web/20130912120456/https://canyoufin...
https://www.bnd.bund.de/DE/Karriere/Reversing_Challenge/Reve...
German video resolving the first of three challenges: https://www.youtube.com/watch?v=mZH094d0M6A