Barings Interview Question

A maths logic problem on a 5 digit number.