Bloomberg Interview Question

You can find some on hackerrank