Hudson River Trading

Interview Question

Algorithm Engineer Interview
Hudson River Trading

Given a function that takes a sentence as a string, write the missing conditions in the if/else statements to return 'digit' if the first character is a number, 'Upper' if it is an uppercase letter, or 'Lower' if it is a lowercase letter.

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!