Barclays interview question

How to combine dataframes row wise and column wise