JUSPAY interview question

Question on rotating a cube in purescript