Implement a custom version of Android findViewById(int id), explaining the underlying view tree traversal algorithm.