Amazon Interview Question

Split string / replace words etc. Rotate image (matrix)