Task: Program Execution
Input (English): n, B, p
Output (English): [['n', 'B'], ['n', 'p'], ['B', 'p']]