InterviewLegend

Arrays & Strings: Two Sum, Reversals & Palindromes

Alex Chen35 min readGuide updated

These five problems come from Bank of America live technical rounds between 2019 and 2024, mostly campus and trainee loops in India. Each takes a few minutes to code. The rest of the slot goes to whatever the interviewer asks next, usually a manual version of something a built-in does, another approach, or the complexity.

The newest two come from the same December 2024 trainee loop in Chennai. For the string work candidates met in late 2025, start with Warm-Ups, Strings & SQL, which has the November 2025 problem of reversing each word of a sentence in place. Reversing a whole string is the most repeated problem on this page, with four reports from 2019 to October 2023.

The Bank of America angle
Write the loop by hand, then name the shortcut. A 2023 candidate was asked to a Premium question, which rules out the one-line slice. Code the plain version any language could run, then mention the built-in and what it costs.

Bank of AmericaPremium lesson · Coding round

The 5 Bank of America problems are below.

  1. A Premium questionCoding · Easy
  2. A Premium questionCoding · Easy
  3. A Premium questionCoding · Easy

+ 2 more in this lesson

Each with hints, the follow-up and a tested solution.

Get the Bank of America questions

$49 a year · all 108 companies · instant access

20,000+ candidate reports

Bank of America interview guide

Know what Bank of America asks before you walk in.

32 coding · 5 system design · 43 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your Bank of America interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.