Generate The Following Patterns Using Nested Menu