JUSPAY Interview Question

hack-a-thon question:- rotating cube problem using any language.