Not even. If you know what a tree is, and you've written a couple of recursive problems on trees in your life, then you know most of them are approximately 5-6 lines of code.
If you're spending 45 minutes writing 5 lines of code, it is not definitive, but certainly a red flag.