Pergunta de entrevista da empresa Smart Sight Innovations

question based on string format