J.P. Morgan Interview Question

It was coding hackathon that lasted for 48 hours