Started a praxis
added solution with tail recursion