Barclays Interview Question

How to combine dataframes row wise and column wise