A friend of mine got asked this question in an interview for a small company:
How would you design an app that receives a matrix and returns the same matrix rotated.
How are these type of questions answered? How do you store it, how do reverse the matrix etc
This question can be asked in many ways, like, design an app that receives a string and returns it or an app that receives an image and makes it black and white etc
How do you answer these?