Update Inheritance.md

added solution