An interpolation problem for integral functions