fully-implemented tests and solution for utopian tree - passed validation on hackerrank