Blackrock

Interview Question

Software Engineer Interview
Blackrock

Answer the following programming questions: 1) Reverse a number. For example, input: 9966, output: 6699. 2) Count occurrences of each word in a string. For example, input: "The lovely lady is looking lovely as all lady look lovely", output: The: 1, lovely: 3, lady: 2, is: 1, looking: 1, as: 1, all: 1, look: 1. 3) Swap two numbers without using a temporary variable. For example, input: a = 10, b = 20; output: a = 20, b = 10.

Unlock the Full Solution

Enter your email to get instant access to the complete solution, explanation, and similar practice problems.

Insights on 100+ quant firms, understand where to apply, and maximize your chances.

Get the official 2025 QB Quant Firm Tier List

Check your email inbox — you should get the interview in 1-2 minutes!