Quantix Capital Interview Question

Java, C++