hiring challenge ruby script