Create a data structure that will implement the below interface.
Plan { planId: string; planType: string; planYear: int; planName: string; }
Plans change from year to year in the insurance industry, this is called crosswalk. Crosswalk record consists of
CrosswalkRecord { fromPlanYear: int, fromPlanId: string, toPlanYear: int, toPlanId: string }
Can you edit this data structure to hold crosswalk structure too ?
It will have these two additional methods