Stack, queue and recursive algorithm design (digital system conversion problem, palindrome judgment