add a recursive solution even though time limit exceeded(TLE)