Given digits 1,2,3,4,3,2,1
We need, 7 digit number, which is same as filling 7 places in a row with the 7 digits 1,2,3,4,3,2,1. Odd places are to be filled by 1,3,5,7 digits. Odd digits are available
1,3,3,1 i.e. two 1’s and two 3’s. ∴4 odd digits can be arranged at 4 odd places in 2!2!4P4 =6 ways.
Now, there are 3 even places. ∴3 even digits can be arranged in 2!3! ways. (As there is two 2′s) ∴ Total number of ways are 6×3=18