Pregunta de entrevista de Virtu Financial

array, string manipulations, and some math-related problems