Work on recursive function

Work on recursive function