**GRPA 3 IIT Madras** *Complete Solutions Are Discussed In the Drive Link Given Below See Bottom And Request We Hope This Might Help You All In Matching Answers . Or For Some Others Reasons Not Able To Complete Graded Assignments *

GrPA 3 – Nested loops – GRADED

Create a multi-functional program that performs different tasks based on the user input. The program should support the following tasks:

**Permutation (**: Given a string`permutation`

)`s`

, print all the possible two-letter permutations(without repitition) of the letters in the string.**Sorted Permutation (**: Given a string`sorted_permutation`

)`s`

, print all the possible two-letter permutations(without repetition) of the letters in the string where the first character comes before the second one in alphabetical order. The order in which the permutations are printed is same as the previous one (Type: Filtering).**Repeat the Repeat (**: Given a number`repeat_the_repeat`

)`n`

, print the numbers from 1 to`n`

in the same line and repeat this`n`

times.**Repeat Incrementally (**: Given a number`repeat_incrementally`

)`n`

, print a pattern where the`k`

-th line contains the first`k`

numbers and there are`n`

lines in total. For example, if`n`

is 4, the output should be:`1 12 123 1234`

**Increment and Decrement (**: Given a number`increment_and_decrement`

)`n`

, print a pattern where the`k`

-th line should have the numbers from`1`

to`k`

and then back down to`1`

. For example, if`n`

is 4, the output should be:`1 121 12321 1234321`