I am getting /bin/run.sh: line 4: 19 Segmentation fault (core dumped) ./exe


It is the code for counting the number of leaves in a binary tree
please help to correct it