star pattern using recursive functions