Testing loops

Stuck at if loop ... trying now with to_i method