added solution to the harry potter floating rocks problem