Nikah Forever interview question

Create a a nested list having horizontal inside verticle list