Employee Inheritance Hackerrank Solution