Deloitte interview question

How to convert rows to columns in sql?