These questions are commonly reported in MathWorks interviews.
Generating Login Codes
Removing Weighted Edges