Happy Number check Ruby