Citadel Securities interview question

A code question about number of paths