First we need to know the specific heat capacity of water. You can look it up online because it is uniform. The specific heat capacity of water is 4184 kg^-1 °C^-1.
To calculate the energy required to heat a specific thing up, we can use the formula
E = mc△T
Where E is the total energy required, m as mass, c as specific heat capacity and △T
Substitute the numbers in
E = 1 x 4184 x 5
E = 20920J
Therefore the answer is 20920 joules