Can someone help me flatten this code so as to pass BNB Verify Smart Contract step?

I have made a small explanation video

I hope this can help you