Pergunta de entrevista da empresa EXL Service

Two puzzles, not so difficult was asked during interview.