BlackRock Interview Question

they asked me a puzzle