J.P. Morgan interview question

It was coding hackathon that lasted for 48 hours