V2S Technologies Interview Question

it was python data structure question