CCC07S5 - recursive solution

works for 4/5 test cases