Pergunta de entrevista da empresa Sprinklr

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