total outcomes of four die are 6 * 6 * 6 * 6 = 1296 (because 6 possibilities for each die)
no. of ways in which 3 does not occur in any of the four outcomes = 5 * 5 * 5 * 5 = 625 (because there are 5 possibilities for each die)
so no.of ways in which atleast one 3 occurs = total ways - no.of ways in which 3 does not occur = 1296 - 625 = 671 -----(ans)