I creaed the ruby code v1. It has not been tested. I also put all the problem1 files into folder to make the project more organized.
Fixed the ruby program by ending all loops. Now only the java program is left for problem 1.