XY Capital Interview Question

C++ , Database, logical thinking