There are lots of resources here:
https://processing.org/
I suggest you peruse the examples, references and tutorials first.
Solving problems is about mastering basic coding first, understanding Processing, and integrating its building blocks (functions and libraries) to create animations or static works of art!
Start simple and build on that. Rome was not built in a day. :)
This is in “static” mode and runs once:
size(200, 400);
background(0);
String s = "ABCDEFGHIJKLMNOPQRSTUVWZYZ";
for(int i = 0; i<10; i++) // later!
{
for(int c = 0; c<s.length(); c++)
{
char ch = s.charAt(c);
println(ch);
// plot on screen from top to bottom
int xsp = 15;
int ysp = 15;
//textSize();
//textAlign();
// fill()
text(ch, i*xsp, c*ysp);
// modulate xsp
float xspmod = 20*sin(c*(TWO_PI/s.length()));
text(ch, xspmod+ width/2 + i*10, c*ysp);
}
}
The very simple and incomplete example above can later be integrated in “active” mode with a setup() and draw() to create elaborate animations.
I always generate a quick rough cut of code off the top of head to test out some ideas and that is what I shared… a very simple proof of concept to build on.
The above is Processing Java code. You can certainly do this also with p5.js.
Have fun!
References:
How to achieve this style of visual? - #5 by glv
I have asked a lot of people but no one knows this effect
The references are examples of what can be done and you can replace shapes with text.
My recommendation is to write your own code first.
You can always glean insight from examining and dissecting examples once you have experience.
Sometimes it is a bit of back and forth but the experience is necessary to master coding.
You can change the category to p5.js if that is your focus. I will leave that with you as part of your journey.
The exploration is the fun part. 
This was one one of the cool effects adding phase shifts in the loops:

Have fun!
:)