you have to change first one
to second one with minimum number of changes..just  make it upside down ...you can move any one to any place...sorry for the ugliness of the pic...balls can be moved from one row to another...
created a blog for myself...i ll try to make it interesting ...