add problem4 algorithm