Comment Comment by alexee I was asked something like this in Amazon SE interview - find something without using loops, the answer was to use recursion. Sigh. parent alexee 9 years ago