If they try to delete from the right subtree instead, then they get 5 points of partial credits follows:
T(n) = 0 + 2 + 4 + 6 + ... + n-2 + nIf you pair up the numbers at the beginning and end of this sequence you get (0, n), (2, n-2), (4, n-4), etc. and the sum of each pair is n. There are n/4 such pairs (because there were n/2 recursive calls), so T(n) = n * (n/4) = n2/4. Hence the running time of your algorithm is O(nn2) if you return a string from each of your recursive functions.