add problem10.hs