The correct option is D 12351
Sum of digits of 12346 = 1 + 2 + 3 + 4 + 6 = 16, which is not divisible by 3.
Sum of digits of 12347 = 1 + 2 + 3 + 4 + 7 = 17, which is not divisible by 3.
Sum of digits of 12349 = 1 + 2 + 3 + 4 + 9 = 19, which is not divisible by 3.
Sum of digits of 12351 = 1 + 2 + 3 + 5 + 1 = 12, which is divisible by 3.