Pergunta de entrevista da empresa Vector Institute

it is based on the problem statement