second part of anegram problem