Implement the kernel ridge regression (KRR) using the string kernel as a function that be implemented in R.

This part of the assignment requires an implementation of the kernel ridge regression (KRR) using the string kernel as a function that be implemented in R.