simple christams tree problem