this is 24 problm solution