JUSPAY interview question

cube rotation mathematical derivation