Avaamo Interview Question

Implement .each() method on Ruby on Rails