Implemented another recursive solution for KarateChop