2. Implement a decoder for the encoding scheme used in the firstproblem. The decoder will reverse whatever operation was performedon the string, meaning each character will be rotated 3 to theleft. For example, the input string def will decode to abc. Createa program which implements this decoding scheme and allows the userto input a string to be decoded. • Only use ASCII characters inrange [32, 127]. • Read an entire string of input from the userusing fgets. • Use input prompt \"Enter a string: \". • Remove thetrailing newline character from the string. • Encode the stringusing the scheme described above. • Output ONLY the decoded messageon a new line. • Save your code as decoder.c.
How to write this in C language