J.P. Morgan interview question

Coding questions asked by interviewers were based on strings, array, and binary search.