working armstrong numbers soln in rb