Vanta interview question

Complete random coding question using CoderPad.