Resolvendo desafio "Utopian Tree" do HackerRank em R e python

Como submeter uma solução em R e em python.