Sprinklr interview question

Basic coding question, Testing related question and a puzzle in R3/4.