Acm problem Solutions