Solve problems 64-65,80 using Ruby.