Question d’entretien chez Bank of America

Questions on string manipulation, oops and puzzles