I did this as a solution to one of the leetcode problems, but I\'m not sure what the complexity of my algorithm is.
public String countAndSay(int n) {