I remember one site, there is a list of prepared questions, and the answer should be a CODE on one of the languages offered.
Write the code, and inside the asserts.
But I lost the link to this site, and Google can not find.
I also remember that he was not alone.
--
Found
www.codewars.com