JUSPAY Interview Question

Question on rotating a cube in purescript