A Generalisation of Kurepa's Inequality