Exercism problems in C