Since each letter can be posted in any one of the four letter boxes. So, a letter can be posted in 4 ways. Since there are 5 letters and each letter can be posted in 4 ways. So, total number of ways in which all the five letters can be posted =4×4×4×4×4=45