Basic Ruby Exercises and Algorithm Concepts