Add #37 solutions in C, Python, and Ruby