TransUnion interview question

Dsa easy to medium level arrays and strings