It’s super easy to pad a string! Just pass in your desired string and length. The string will be padded until the…