add problem5.hs