Cashfree interview question

1.Sidebar with nested sections 2. Flattening nested objects