[UtopianTree] Final solution, todo - test for input stream