The different numbers that can be formed using these numbers are total 5! = 120 numbers
Now when unit digit is fixed then others can be arranged in 4! =24 ways
Thus all numbers out of ( 1,3,4,5,7 ) will repeat 24 times forming unit digits of 120 numbers
Similarly for other place digits each of these 5 numbers will be repeated 24 times