varint kata solution in java