CodeSignal Interview Question

how to code CFA with R? how to distinguish predictive validity and concurrent validity?