Buffer Overflow - Skills Assessment HTB Academy

Ca someone Help? I stuck in this for 3 days and I can’t figure out my brain is in pain