Add #15 solutions in C, Python, and Ruby