Micron Technology Interview Question

rotate a graph with x and y