If a page is not having featured image, display the featured image of its parent page.
If again that parent is not having featured image, get it from the next higher level and so on till featured image is found or last level is reached.
Is there a solution for this in WordPress?
You can use a recursive function like this:
Then in your template use this to display the featured image: