Added Problem 1 solutions in Ruby, Python, C, C++, and Java