Domanda di colloquio di Bloomberg

the brain teaser, and the program correctness problem